package tech.waterism.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class DispatchVariable extends DispatchBase {
    /**
     * 参数范围下限
     */
    @ApiModelProperty(value = "参数范围下限")
    private DispatchBound lowerBound;
    /**
     * 参数范围上限
     */
    @ApiModelProperty(value = "参数范围上限")
    private DispatchBound upperBound;
    /**
     * 分段数
     */
    @ApiModelProperty(value = "分段数")
    private Integer segment;

    @JsonIgnore
    @ApiModelProperty(value = "分段信息")
    private SegInfo segInfo;

    /**
     * 取值类型
     * 实数 real
     * 整数 integer
     */
    @Pattern(regexp = "real|integer", message = "取值类型只能是real或integer")
    @ApiModelProperty(value = "取值类型: real, integer")
    private String variableType;
    /**
     * 率定结果
     */
    @ApiModelProperty(value = "率定结果")
    private Variable variable;
}
